<template>



  <van-dialog v-model:show="show" :title="title" show-cancel-button>
    {{ text }}
  </van-dialog>

</template>



<script setup>

import { getHomePopup } from "@/api/index.js"

import { ref, onMounted } from 'vue'
const show = ref(false);
const title = ref('')
const text = ref('')


onMounted(async () => {

  const response = await getHomePopup()

  title.value = response.data.title
  text.value = response.data.text
  // show.value = true;

})


</script>
